package com.nebula.common.datasource.mybatis.db;

/**
 * Created by Mtime on 2017/3/28.
 */
public class  ShardDsNode{
    private String shardName;
    private long start;
    private long end;
    private int remainders;
    private String type;
    private String dsKey;
    private int mod;

    public ShardDsNode(String shardName,long start,long end,int mod,int remainders,String type){
        this.shardName=shardName;
        this.start=start;
        this.end=end;
        this.mod=mod;
        this.remainders=remainders;
        this.type=type;
        this.dsKey=shardName+"_"+start+"_"+end+"_"+remainders+"_"+type;
    }

    public String getShardName() {
        return shardName;
    }

    public void setShardName(String shardName) {
        this.shardName = shardName;
    }

    public int getMod() {
        return mod;
    }

    public void setMod(int mod) {
        this.mod = mod;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public int getRemainders() {
        return remainders;
    }

    public void setRemainders(int remainders) {
        this.remainders = remainders;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDsKey() {
        return dsKey;
    }

    public void setDsKey(String dsKey) {
        this.dsKey = dsKey;
    }
}
